<script setup>
import PaperApis from '@/apis/paper.js'
import {useRoute} from "vue-router";
import ListApis from '@/apis/list.js'
import useUserStore from '@/stores/user.js'

const route = useRoute()
const userStore = useUserStore()


function init(){
  PaperApis.todayPractice({
    params:{
      categoryId:route.query.categoryId
    }
  }).then(res=>{
  //   每日一练详情
  // 生成每日一练的试卷
    ListApis.questionCollection({
      collectionType:'everyDayPractice',
      industryCode:userStore.selectCategory.industryCode,
      examId:userStore.selectCategory.examId,
      categoryId:userStore.selectCategory.categoryId,
    })
  })
}
init()

</script>

<template>

</template>

<style scoped>

</style>